import _00GraphFuc as gf
import _00GraphTreeFuc as gt

#生成加权图Gw
m,n,W=5,4,100
[V,E]=gf.MNgraph(m,n)
gf.drawgraph(E)
[V,E]=gf.weightedgraph(V,E,W)
print(E)